package com.simple.portal.bo.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.simple.portal.bo.IGroupApplicationRightBO;
import com.simple.portal.dao.IGroupApplicationRightDAO;
import com.simple.portal.vo.GroupApplicationRightVO;

@Service("groupApplicationRightBO")
@Transactional(propagation=Propagation.REQUIRED,readOnly=true)
public class GroupApplicationRightBOImpl implements IGroupApplicationRightBO {
	
	@Autowired
	private IGroupApplicationRightDAO groupApplicationRightDAO;
	
	@Override
	public GroupApplicationRightVO findById(String id) {
		
		return groupApplicationRightDAO.findById(id);
	}

	@Override
	public List<GroupApplicationRightVO> findAll() {
		
		return groupApplicationRightDAO.findAll();
	}

	@Override
	public List<GroupApplicationRightVO> findGroupApplicationRightByGroup(final String groupId){
		return groupApplicationRightDAO.findGroupApplicationRightByGroup(groupId);
	}
}
